package com.be.beadmin.material.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: Mengyang Zhu
 * @Date: 2023/7/16 12:19
 * @Description: 物料采购信息
 */
@Entity
@Data
@Table(name = "T_MM_MaterialShortage")
public class MaterialShortage extends BaseEntity {
    @Column(name = "projectName", columnDefinition = "VARCHAR(100) COMMENT '项目名称' ")
    private String projectName;

    @Column(name = "infoId", columnDefinition = "VARCHAR(100) COMMENT '项目id' ")
    private String infoId;

    @Column(name = "currentBatch",columnDefinition = "int COMMENT '当前批次' ")
    private Integer currentBatch;

    @Column(name = "batchCount",columnDefinition = "int COMMENT '批次总数' ")
    private Integer batchCount;

    @Column(name = "materialCode", columnDefinition = "VARCHAR(50) COMMENT '物料编码' ")
    private String materialCode;
    @Column(name = "materialName", columnDefinition = "VARCHAR(50) COMMENT '物料名称' ")
    private String materialName;
    @Column(name = "lackQty", columnDefinition = "int COMMENT '缺货数量' ")
    private int lackQty;
    @Column(name = "materialType", columnDefinition = "VARCHAR(50) COMMENT '物料类型' ")
    private String materialType;

    @Column(name = "materialSpec", columnDefinition = "VARCHAR(50) COMMENT '物料规格' ")
    private String materialSpec;
    @Column(name = "unit", columnDefinition = "VARCHAR(50) COMMENT '单位' ")
    private String unit;

    @Column(name = "expectedDeliveryTime", columnDefinition = "datetime COMMENT '预计到货日期' ")
    private Date expectedDeliveryTime;
}
